package com.netx.generics.sql;
import java.text.DateFormat;

import com.netx.generics.time.Date;
import com.netx.generics.time.Moment;
import com.netx.generics.time.Time;


public class Column {

	private final Table _parent;
	private final int _index;

	Column(Table t, int index) {
		_parent = t;
		this._index = index;
	}
	
	public Table getTable() {
		return _parent;
	}

	public int getRowCount() {
		return _parent.getRowCount();
	}

	public boolean isEmpty() {
		return _parent.isEmpty();
	}

	public String getString(int row) {
		return _parent.getString(_index, row);
	}

	public boolean getBoolean(int row) {
		return _parent.getBoolean(_index, row);
	}

	public char getChar(int row) {
		return _parent.getChar(_index, row);
	}

	public byte getByte(int row) {
		return _parent.getByte(_index, row);
	}

	public short getShort(int row) {
		return _parent.getShort(_index, row);
	}

	public int getInt(int row) {
		return _parent.getInt(_index, row);
	}

	public long getLong(int row) {
		return _parent.getLong(_index, row);
	}

	public float getFloat(int row) {
		return _parent.getFloat(_index, row);
	}

	public double getDouble(int row) {
		return _parent.getDouble(_index, row);
	}

	public Moment getMoment(int row) {
		return _parent.getMoment(_index, row);
	}

	public Moment getMoment(int row, DateFormat df) {
		return _parent.getMoment(_index, row, df);
	}

	public Date getDate(int row) {
		return _parent.getDate(_index, row);
	}

	public Date getDate(int row, DateFormat df) {
		return _parent.getDate(_index, row, df);
	}

	public Time getTime(int row) {
		return _parent.getTime(_index, row);
	}

	public Time getTime(int row, DateFormat df) {
		return _parent.getTime(_index, row, df);
	}

}